import axios from "axios";
import { baseURL } from "./my-account";

const http = axios.create({
    baseURL: 'https:/travelapi.teachlee.com/apif', 
    timeout:3000,
})

http.interceptors.request.use(config=>{
  return config;
})
http.interceptors.response.use(response=>{
    return response.data;
})
 
export default{
    get(url,params){
        return http.get(url,{params})
    },
    post(url,data){
        return http.post(url,data)
    },
}